﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
     <title>登陆</title>
    <style type="text/css">
    	body{
			background:url(img/login1.png) repeat-x transparent;
			padding:0;
			margin:0;
		}
		.img{
			position:relative;
			left:150px;
		}
		.img2{
			width:300px;
			top:200px;
			left:670px;
			position:absolute;
		}
		.btn{
			background-image:url(img/login-btn.png);
			height:37px;
			width:117px;
			border:0;
			margin-left:85px;
			cursor:hand;
		}
		.txt {
		    width:150px;
		}
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <img class="img" src="img/login1-1.png"/>
        <div class="img2"><img src="img/login1-2.png"/></div>
	    <div style="width:300px; position:absolute; left:700px; top:220px;">
	    <table style="width:350px;">
	        <tr style="height:30px;"><td>用 户 名：</td><td colspan="2"><asp:TextBox ID="username" runat="server" CssClass="txt" ></asp:TextBox></td></tr>
	        <tr style="height:30px;"><td>密  &nbsp; &nbsp; &nbsp;码：</td><td colspan="2"><asp:TextBox ID="password" runat="server" TextMode="Password" CssClass="txt"></asp:TextBox></td></tr>
	        <tr style="height:30px;"><td>验 证 码：</td><td><asp:TextBox ID="code" runat="server" CssClass="txt"></asp:TextBox></td>
	            <td><img src="GetValidate.aspx"  alt="" style="cursor:hand;" onclick="codeRefresh(this);return false;" /></td>
	        </tr>
	        <tr style="height:50px;" ><td colspan="3">
                <asp:Button ID="Button2" runat="server" Text="登陆" CssClass="btn"  OnClick="Button2_Click" /></td>
	            
	        </tr>
	    </table>
        
        
        </div>
    </div>
    </form>
</body>
   <script language="javascript" type="text/javascript">
    function codeRefresh(obj)
        {
            obj.src = "GetValidate.aspx?pcode=" + (Math.random() *1000);
        }
   </script>
</html>
